/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package primephysique;

/**
 *
 * @author AP
 */
public class Main extends javax.swing.JFrame {

    /**
     * Creates new form Main
     */
    public Main() {
        initComponents();
        setContentPane(new LogIn(this));
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        mnuBar = new javax.swing.JMenuBar();
        mnuFile = new javax.swing.JMenu();
        mniExit = new javax.swing.JMenuItem();
        mnuManager = new javax.swing.JMenu();
        mniLogIn = new javax.swing.JMenuItem();
        mniClass = new javax.swing.JMenuItem();
        mniProgram = new javax.swing.JMenuItem();
        mniBranch = new javax.swing.JMenuItem();
        mniTeacher = new javax.swing.JMenuItem();
        mniFeedBack = new javax.swing.JMenuItem();
        mniTrainee = new javax.swing.JMenuItem();
        mniStaff = new javax.swing.JMenuItem();
        mnuFunctions = new javax.swing.JMenu();
        mnuSearch = new javax.swing.JMenu();
        mniSearchStaff = new javax.swing.JMenuItem();
        mniSearchTrainee = new javax.swing.JMenuItem();
        mniStatistic = new javax.swing.JMenuItem();
        mniRevenue = new javax.swing.JMenuItem();
        mniActiveTrainee = new javax.swing.JMenuItem();
        mniFindSuitableClass = new javax.swing.JMenuItem();
        mniViewLearnSchedule = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        mnuFile.setText("File");

        mniExit.setText("Exit");
        mniExit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mniExitActionPerformed(evt);
            }
        });
        mnuFile.add(mniExit);

        mnuBar.add(mnuFile);

        mnuManager.setText("Manager");

        mniLogIn.setText("Log in");
        mniLogIn.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mniLogInActionPerformed(evt);
            }
        });
        mnuManager.add(mniLogIn);

        mniClass.setText("Class");
        mniClass.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mniClassActionPerformed(evt);
            }
        });
        mnuManager.add(mniClass);

        mniProgram.setText("Program");
        mniProgram.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mniProgramActionPerformed(evt);
            }
        });
        mnuManager.add(mniProgram);

        mniBranch.setText("Branch");
        mniBranch.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mniBranchActionPerformed(evt);
            }
        });
        mnuManager.add(mniBranch);

        mniTeacher.setText("Teacher");
        mniTeacher.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mniTeacherActionPerformed(evt);
            }
        });
        mnuManager.add(mniTeacher);

        mniFeedBack.setText("FeedBack");
        mniFeedBack.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mniFeedBackActionPerformed(evt);
            }
        });
        mnuManager.add(mniFeedBack);

        mniTrainee.setText("Trainee");
        mnuManager.add(mniTrainee);

        mniStaff.setText("Staff");
        mnuManager.add(mniStaff);

        mnuBar.add(mnuManager);

        mnuFunctions.setText("Functions");

        mnuSearch.setText("Search");

        mniSearchStaff.setText("Search Staff");
        mniSearchStaff.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mniSearchStaffActionPerformed(evt);
            }
        });
        mnuSearch.add(mniSearchStaff);

        mniSearchTrainee.setText("Search Trainee");
        mniSearchTrainee.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mniSearchTraineeActionPerformed(evt);
            }
        });
        mnuSearch.add(mniSearchTrainee);

        mnuFunctions.add(mnuSearch);

        mniStatistic.setText("Statistic");
        mniStatistic.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mniStatisticActionPerformed(evt);
            }
        });
        mnuFunctions.add(mniStatistic);

        mniRevenue.setText("Revenue");
        mniRevenue.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mniRevenueActionPerformed(evt);
            }
        });
        mnuFunctions.add(mniRevenue);

        mniActiveTrainee.setText("Find Active Trainee");
        mniActiveTrainee.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mniActiveTraineeActionPerformed(evt);
            }
        });
        mnuFunctions.add(mniActiveTrainee);

        mniFindSuitableClass.setText("Find Suitable Class");
        mniFindSuitableClass.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mniFindSuitableClassActionPerformed(evt);
            }
        });
        mnuFunctions.add(mniFindSuitableClass);

        mniViewLearnSchedule.setText("View Learn Schedule");
        mniViewLearnSchedule.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mniViewLearnScheduleActionPerformed(evt);
            }
        });
        mnuFunctions.add(mniViewLearnSchedule);

        mnuBar.add(mnuFunctions);

        setJMenuBar(mnuBar);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 400, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 279, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void mniExitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mniExitActionPerformed
        System.exit(0);
    }//GEN-LAST:event_mniExitActionPerformed

    private void mniViewLearnScheduleActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mniViewLearnScheduleActionPerformed
        // TODO add your handling code here:
        setContentPane(new ViewLearnSchedule());
        setVisible(true);
    }//GEN-LAST:event_mniViewLearnScheduleActionPerformed

    private void mniFindSuitableClassActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mniFindSuitableClassActionPerformed
        // TODO add your handling code here:
        setContentPane(new FindSuitableClass());
        setVisible(true);
    }//GEN-LAST:event_mniFindSuitableClassActionPerformed

    private void mniActiveTraineeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mniActiveTraineeActionPerformed
        setContentPane(new ActiveTrainee());
        setVisible(true);
    }//GEN-LAST:event_mniActiveTraineeActionPerformed

    private void mniRevenueActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mniRevenueActionPerformed
        setContentPane(new Revenue());
        setVisible(true);
    }//GEN-LAST:event_mniRevenueActionPerformed

    private void mniStatisticActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mniStatisticActionPerformed
        setContentPane(new Statistic());
        setVisible(true);
    }//GEN-LAST:event_mniStatisticActionPerformed

    private void mniSearchStaffActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mniSearchStaffActionPerformed
        setContentPane(new SearchStaff());
        setVisible(true);
    }//GEN-LAST:event_mniSearchStaffActionPerformed

    private void mniSearchTraineeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mniSearchTraineeActionPerformed
        setContentPane(new SearchTrainee());
        setVisible(true);
    }//GEN-LAST:event_mniSearchTraineeActionPerformed

    private void mniLogInActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mniLogInActionPerformed
        setContentPane(new LogIn(this));
        setVisible(true);
    }//GEN-LAST:event_mniLogInActionPerformed

    private void mniClassActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mniClassActionPerformed
        // TODO add your handling code here:
        setContentPane(new ClassManage());
        setVisible(true);
    }//GEN-LAST:event_mniClassActionPerformed

    private void mniProgramActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mniProgramActionPerformed
        // TODO add your handling code here:
        setContentPane(new BranchManage());
        setVisible(true);
    }//GEN-LAST:event_mniProgramActionPerformed

    private void mniBranchActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mniBranchActionPerformed
        // TODO add your handling code here:
        setContentPane(new ProgramManage());
        setVisible(true);
    }//GEN-LAST:event_mniBranchActionPerformed

    private void mniTeacherActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mniTeacherActionPerformed
        // TODO add your handling code here:
        setContentPane(new TeacherManage());
        setVisible(true);
    }//GEN-LAST:event_mniTeacherActionPerformed

    private void mniFeedBackActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mniFeedBackActionPerformed
        // TODO add your handling code here:
        setContentPane(new FeedBackManage());
        setVisible(true);
    }//GEN-LAST:event_mniFeedBackActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /*
         * Set the Nimbus look and feel
         */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /*
         * If Nimbus (introduced in Java SE 6) is not available, stay with the
         * default look and feel. For details see
         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Main.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Main.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Main.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Main.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /*
         * Create and display the form
         */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new Main().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenuItem mniActiveTrainee;
    private javax.swing.JMenuItem mniBranch;
    private javax.swing.JMenuItem mniClass;
    private javax.swing.JMenuItem mniExit;
    private javax.swing.JMenuItem mniFeedBack;
    private javax.swing.JMenuItem mniFindSuitableClass;
    private javax.swing.JMenuItem mniLogIn;
    private javax.swing.JMenuItem mniProgram;
    private javax.swing.JMenuItem mniRevenue;
    private javax.swing.JMenuItem mniSearchStaff;
    private javax.swing.JMenuItem mniSearchTrainee;
    private javax.swing.JMenuItem mniStaff;
    private javax.swing.JMenuItem mniStatistic;
    private javax.swing.JMenuItem mniTeacher;
    private javax.swing.JMenuItem mniTrainee;
    private javax.swing.JMenuItem mniViewLearnSchedule;
    private javax.swing.JMenuBar mnuBar;
    private javax.swing.JMenu mnuFile;
    private javax.swing.JMenu mnuFunctions;
    private javax.swing.JMenu mnuManager;
    private javax.swing.JMenu mnuSearch;
    // End of variables declaration//GEN-END:variables
}
